<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>指令</title>
		<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
	</head>
	<body>
		<div id="app">
			<!-- 绑定事件 -->
			<input type="button" value="点击1" v-on:click="clickBtn()"/>
			
			<!-- 简写 -->
			<input type="button" value="点击2" @click="clickBtn()"/>
		</div>
		
		<script>
			var app = new Vue({
				el: '#app',
				methods:{
					clickBtn(){
						alert("我被点击了...");
					}
				}
			});
		</script>
	</body>
</html>
